﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yaml.Presentation.Tokens {
    public class BlockToken : Token {
        private int indent;
        
        public BlockToken(Mark start, Mark end, int indent)
            : base(start, end) {
            this.indent = indent;
        }

        /// <summary>
        /// The indent level after this token.
        /// </summary>
        public int Indent { get { return indent; } }

        public override String ToString() {
            return "#<" + this.GetType().Name + " indent='" + indent.ToString() + "' start=" + Start.ToString() + " end=" + End.ToString() + ">";
        }
    }
}
